package com.qf.forumproject.course.service.Impl;

import com.qf.forumproject.course.dao.QfCourseContentDao;
import com.qf.forumproject.course.service.QfCourseContentService;
import com.qf.forumproject.utils.CourseVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * (QfCourseContent表)服务实现类
 *
 * @author protagonist
 * @since 2022-07-23 11:43:01
 */
@Service("qfCourseContentServiceImpl")
public class QfCourseContentServiceImpl implements QfCourseContentService {
    @Resource
    private QfCourseContentDao qfCourseContentDao;

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    @Override
    public List<CourseVo> selectById(Integer id) {
        return  qfCourseContentDao.selectById(id);
    }

    /**
     * 查询所有
     *
     * @return 实例对象的集合
     */
     @Override
     public List<CourseVo> selectAll() {
        return qfCourseContentDao.selectAll();
     }

    /*@Override
    public QfCourseContent updateCount(Integer id) {
        return qfCourseContentDao.updateCount(id);
    }*/

    @Override
    public List<CourseVo> selectAllzhuanlan() {
        return qfCourseContentDao.selectAllzhuanlan();
    }
}
